

#ifndef __NMEAP_RMC_H__
#define __NMEAP_RMC_H__

#include "nmeap.h"

typedef struct 
{
    nmeap_date_t    date;
    nmeap_time_t    time;
    int             latitude_dm;    /* integer part of latitude degree and minute, 'N' is positive , 'S' is negative */
    int             latitude_dp;    /* decimal part of the latitude minute, multiply by 1000000 */
    int             longitude_dm;   /* integer part of longitude degree and minute, 'E' is positive, 'W' is negative */
    int             longitude_dp;   /* decimal part of the longitude minute, multiply by 1000000 */
    unsigned char   valid;          /* data valid. 1-valid, 0-invalid */
} nmeap_rmc_t;


int nmeap_parse_rmc(nmeap_context_t *context, nmeap_sentence_t *sentence);

#endif  /* __NMEAP_RMC_H__ */
